html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  margin: 0;
  padding: 0;
  color: #333;
}

/* Team Container */
.team-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Card Styling */
.card {
  background-color: #fff;
  width: 700px;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
  margin: 20px;
  position: relative;
}

/* Border Hover Effect */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(45deg, #00dbde, #fc00ff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

/* Image Container */
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 106%;
  height: 300px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

/* Image Styling */
.team-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Image Hover Effect */
.card:hover .team-photo {
  transform: scale(1.1);
}

/* Card Content */
.card-content {
  padding: 25px;
  background-color: #fff;
}

.card-content h2 {
  margin: 10px 0;
  font-size: 2rem;
  color: #2c3e50;
}

.card-content .title {
  font-size: 1.2rem;
  color: #3498db;
  margin-bottom: 15px;
}

.card-content p {
  color: #7f8c8d;
  font-size: 1rem;
  line-height: 1.5;
}

/* Fun Fact */
.fun-fact {
  font-style: italic;
  color: #8e44ad;
  margin-top: 15px;
  font-size: 0.95rem;
}

/* Skills Badges */
.skills {
  margin-top: 15px;
}

.skills .badge {
  margin: 5px;
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 50px;
}

/* Judul Tim Kami */
.team-title {
  text-align: center;
  margin-bottom: 40px;
}

.team-title h1 {
  font-size: 2.8rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.team-title p {
  font-size: 1.1rem;
  color: #7f8c8d;
}

/* Navbar */
.navbar {
  background-color: #1167b1 !important;
  border: none; /* Pastikan navbar tidak punya border */
  outline: none; /* Pastikan navbar tidak punya outline */
}

.navbar-brand,
.nav-link {
  color: white !important;
}

.nav-link:hover {
  color: #cce6ff !important;
}

/* Animasi slide in dari kiri*/
@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animasi slide in dari atas*/
@keyframes slideInTop {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animasi slide in dari bawah*/
@keyframes slideInBottom {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Default state sebelum terlihat */
.slide-in,
.slide-in-t,
.slide-in-b1,
.slide-in-b2,
.slide-in-b3,
.slide-in-b4,
.slide-in-b5 {
  opacity: 0;
}

/* Aktifkan animasi saat terlihat */
.slide-in.show {
  animation: slideInLeft 1.2s ease-out forwards;
}

/* Aktifkan animasi saat terlihat */
.slide-in-t.show {
  animation: slideInTop 1.2s ease-out forwards;
}

/* Aktifkan animasi saat terlihat */
.slide-in-b1.show {
  animation: slideInBottom 0.8s ease-out forwards;
}

/* Aktifkan animasi saat terlihat */
.slide-in-b2.show {
  animation: slideInBottom 0.9s ease-out forwards;
}

/* Aktifkan animasi saat terlihat */
.slide-in-b3.show {
  animation: slideInBottom 1s ease-out forwards;
}

/* Aktifkan animasi saat terlihat */
.slide-in-b4.show {
  animation: slideInBottom 1.1s ease-out forwards;
}

/* Aktifkan animasi saat terlihat */
.slide-in-b5.show {
  animation: slideInBottom 1.2s ease-out forwards;
}

/* Responsif untuk ukuran tablet & smartphone */
@media (max-width: 1024px) {
  .card {
    width: 90%;
  }

  .image-container {
    height: 250px;
  }

  .team-photo {
    height: 250px;
  }

  .card-content h2 {
    font-size: 1.8rem;
  }

  .card-content .title {
    font-size: 1rem;
  }

  .card-content p {
    font-size: 0.95rem;
  }

  .team-title h1 {
    font-size: 2.2rem;
  }

  .team-title p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .card {
    width: 95%;
  }

  .image-container {
    height: 200px;
  }

  .team-photo {
    height: 200px;
  }

  .card-content h2 {
    font-size: 1.6rem;
  }

  .card-content .title {
    font-size: 0.95rem;
  }

  .card-content p {
    font-size: 0.9rem;
  }

  .team-title h1 {
    font-size: 2rem;
  }

  .team-title p {
    font-size: 0.95rem;
  }

  .skills .badge {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .card {
    width: 100%;
    margin: 10px 0;
  }

  .image-container {
    height: 180px;
  }

  .team-photo {
    height: 180px;
  }

  .card-content {
    padding: 20px;
  }

  .card-content h2 {
    font-size: 1.4rem;
  }

  .card-content .title {
    font-size: 0.85rem;
  }

  .card-content p {
    font-size: 0.85rem;
  }

  .team-title h1 {
    font-size: 1.8rem;
  }

  .team-title p {
    font-size: 0.9rem;
  }

  .skills .badge {
    font-size: 0.7rem;
    padding: 5px 8px;
  }
}
